package com.power.services.entrust;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.power.dao.entrust.RzSpeedyEntrustDAO;
import com.power.model.entrust.RzSpeedyEntrust;

@Service("rzSpeedyEntrustService")
public class RzSpeedyEntrustServiceImpl implements RzSpeedyEntrustService {

	@Autowired
	private RzSpeedyEntrustDAO dao;

	public void create(RzSpeedyEntrust arg0) {
		dao.save(arg0);
	}

	public void delete(RzSpeedyEntrust arg0) {
		dao.delete(arg0);
	}

	public RzSpeedyEntrust read(Integer arg0) {
		return dao.get(arg0);
	}

	public void update(RzSpeedyEntrust arg0) {
		dao.update(arg0);
	}

	public List<RzSpeedyEntrust> findALLbyParam(Map<String, String> map, int start,
			int limit) {
		String hql = "from com.power.model.entrust.RzSpeedyEntrust";
		return dao.find(hql);
	}

	public void saveOrUpdate(RzSpeedyEntrust obj) {
		dao.saveOrUpdate(obj);		
	}

}
